﻿#ifndef MEASURE_SIZE_H
#define MEASURE_SIZE_H
#include "halconcpp/HalconCpp.h"
#include "Common/common.h"
using namespace HalconCpp;

struct M_S_PLACE
{
    HalconCpp::HTuple x1 = 0;
    HalconCpp::HTuple y1 = 0;
    HalconCpp::HTuple x2 = 0;
    HalconCpp::HTuple y2 = 0;
    HalconCpp::HTuple hvCCDHandle;
};

class Measure_Size
{
public:
    Measure_Size();
    int M_Length(HObject img, bool saveImg,HTuple &len);
    int M_Length_Index=0;

public:
    Cam2 para2;

    int m_nSaveOkImage = 0;  // 1 OK and NG  0  NG
    M_S_PLACE m_placeA;
    M_S_PLACE m_placeB;
};


#endif // MEASURE_SIZE_H
